package comm.test.bean;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
/**
 * @author WangLin
 * @packageName
 * @ClassName EggRice
 * @date 2020/10/27 21:45
 * @description
 */
//类自动装配组件注解，替换bean节点
@Component("eggRice")
public class EggRice implements Rice{
    public void showName(){
        System.out.println("EggRice----------------");
    }
}
